import request from '@/utils/request'

// 查询登录日志列表
export function list(query) {
  return request({
    url: '/monitor/loginlog/list',
    method: 'get',
    params: query
  })
}

// 删除登录日志
export function delLoginlog(infoId) {
  return request({
    url: '/monitor/loginlog/' + infoId,
    method: 'delete'
  })
}

// 清空登录日志
export function cleanLoginlog() {
  return request({
    url: '/monitor/loginlog/clean',
    method: 'delete'
  })
}

// 导出登录日志
export function exportLoginlog(query) {
  return request({
    url: '/monitor/loginlog/export',
    method: 'get',
    params: query
  })
}

// 获取登录日志
export function getLoginlog(loginId) {
  return request({
    url: '/monitor/loginlog/'+loginId,
    method: 'get'
  })
}
